package com.wq.gamesnack;

import android.app.Application;

import java.util.LinkedList;

/**
 * Created by weiquan on 2018/5/10.
 */

public class CommonApp extends Application {
    private static CommonApp _application;
    public void onCreate() {
        super.onCreate();
        _application = this;
    }
    public static CommonApp getInstance() {
        if(_application == null) {
            throw new RuntimeException("CommonApp 未被正常初始化!");
        } else {
            return _application;
        }
    }
}
